import React from 'react'
import { Button, NavBar } from 'antd-mobile'
import { useNavigate, useSearchParams } from 'react-router-dom'
const Myhand = () => {
    const nav=useNavigate()
    const [sp]=useSearchParams()
  return (
    <div>
        <NavBar onBack={()=>nav(-1)}>{sp.get('start')}→{sp.get('end')}</NavBar>
        <div style={{textAlign:'center',width:'100vw',height:'50px',lineHeight:'50px'}}>
            <Button style={{float:'left'}}>前一天</Button>
            <span>{sp.get('date')}</span>
            <Button style={{float:'right'}}>后一天</Button>
        </div>
    </div>
  )
}

export default Myhand
